﻿using System;
using System.Collections.Generic;

namespace SharpTrainer
{
    public class ArrayUtil
    {
        public static void SwapElementsInArray<T>(T[] theArray,
            int index1, int index2)
        {
            T tempHolder = theArray[index1];
            theArray[index1] = theArray[index2];
            theArray[index2] = tempHolder;
        }
    }
}
